<template>
	<view class="add">
		<input type="text" placeholder="留下你的评论" />
		<text @tap="send()">发送</text>
		<view class="pic">
			<view class="" style="padding-right: 15upx;" @tap="hit()"   >
				<image src="../../static/img/news/dianzan.png"  ></image>
				<text>点赞</text>
			</view>
			<view class="" style="padding-right: 15upx;">
				<image src="../../static/img/news/shoucang.png" ></image>
				<text>收藏</text>
			</view>
			<view class="" style="padding-right: 15upx;" @tap="jum()">
				<image src="../../static/img/news/dashang.png" ></image>
				<text>打赏</text>
			</view>
			<view class="" style="padding-right: 15upx;">
				<image src="../../static/img/news/fenxiang1.png" ></image>
				<text>分享</text>
			</view>
		</view>
	</view>
</template>

<script>
var self;
export default {
	props:["commentList"],
	data() {
		return {
			news_id:'',
			img:false,
			imgs:true
		
		};
	},
	methods: {
		send:function() {
			uni.showLoading({
			    title: '评论中...'
			});
			uni.request({
				url:"http://yijiazhihui.40b876.cn/news/csave",
				dataType:"json",
				data:{
					type:0,
					news_id:1,
					member_id:1,
					comment_id:1,
					content:1   
				},
				success:(res)=>{
					uni.showToast({
					    title: '评论成功',
					    duration: 2000
					});
				},
				complete:(over)=>{
					complete:(over)=>{
						uni.hideLoading();
					}
				}
			})
		}
	}
};
</script>
<style lang="scss">
.add {
	position: fixed;
	background-color: #ffffff;
	top: 92%;
	display: inline-flex;
	line-height: 100upx;
	font-size: 28upx;
	padding-left: 30upx;
	padding-right: 30upx;
	width:100%;
	.pic {
		width: 70upx;
		display: flex;
		font-size: 24upx;
		color: #989898;
		image {
			width: 50upx;
			height: 50upx;
			position: relative;
			top: 00upx;
		}
		text {
			color: #999999;
			font-size: 24upx;
			position: relative;
			top: -75upx;
		}
	}
	input {
		height: 80upx;
		margin-top: 10upx;
		width: 300upx;
		border-bottom: 1px solid #999999;
	}
	text {
		color: #fb861c;
		font-size: 45upx;
		width: 110upx;
	}
}
</style>
